package nju.software.xkxt.service.model;

import nju.software.xkxt.data.dataobject.ScoreDO;

public class ScoreModel {

	private Integer score;
	private Integer UId;
	private Integer CId;
	private Integer SId;
	private Integer TId;

	public ScoreModel(Integer score, Integer UId, Integer CId, Integer SId,Integer TId) {
		this.score = score;
		this.UId = UId;
		this.CId = CId;
		this.SId = SId;
		this.TId = TId;
	}

	public ScoreModel(ScoreDO cDo){
		score = cDo.getScore();
		UId = cDo.getUId();
		CId = cDo.getCId();
		SId = cDo.getSId();
		TId = cDo.getTId();
	}
	public ScoreModel(SelectionModel model){
		this.UId = model.getUserId();
		this.CId = model.getCourseId();
		this.TId = model.getTid();
	}
	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getUId() {
		return UId;
	}

	public void setUId(Integer uId) {
		UId = uId;
	}

	public Integer getCId() {
		return CId;
	}

	public void setCId(Integer cId) {
		CId = cId;
	}

	public Integer getSId() {
		return SId;
	}

	public void setSId(Integer sId) {
		SId = sId;
	}

	public Integer getTId() {
		return TId;
	}

	public void setTId(Integer tId) {
		TId = tId;
	}
	
}
